/**
 * Copyright (C), 2015-2021, 开度
 * FileName: UserInfoVo
 * Author:   ASUS
 * Date:     2021/4/28 15:00
 * Description: 用户模块前端交互实体Vo
 * History:
 * <author>          <time>          <version>          <desc>
 * Hezeyu           2021/4/28           1.0              用户模块前端交互实体Vo
 */
package com.example.spring.security.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 〈用户模块前端交互实体Vo〉
 *
 * @author ASUS
 * @create 2021/4/28
 * @since 1.0.0
 */
@Data
@ApiModel(description = "用户管理")
public class UserInfoVo implements Serializable {


    /**
     * 用户账号
     */
    @ApiModelProperty(value = "登录账号", name = "username", required = false)
    @NotBlank(message = "账号不允许为空,请输入")
    private String username;

    /**
     * 登录密码
     */
    @ApiModelProperty(value = "登录密码", name = "password", required = false)
    @NotBlank(message = "登录密码不允许为空,请输入")
    private String password;

    /**
     * 角色
     */
    @ApiModelProperty(value = "用户角色", name = "role", required = false)
//    @NotBlank(message = "角色不能为空")
    private String role;
}
